package com.unionx.unionxuf.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.unionx.unionxuf.dao.LoginDao;
import com.unionx.unionxuf.entity.Role;
import com.unionx.unionxuf.entity.User;

@Service("LoginService")
public class LoginServiceImpl implements LoginService {

	@Autowired(required=true)
	private LoginDao loginDao;
	
	public Object getAllCorpInfo(Integer pageSize,Integer pageNum) {
		
		return loginDao.getAllCorpInfo(pageSize,pageNum);
	}
     
	@Override
	public Object getUserInfo(String username, String password) {
		 

		return loginDao.getUserInfo(username, password);
	}

	@Override
	public Object updateUserPassword(String userid, String password) {
		// TODO Auto-generated method stub
		return loginDao.updateUserPassword(userid, password);
	}

	@Override
	public int getCorpCount() {
		// TODO Auto-generated method stub
		return loginDao.getCorpCount();
	}

	@Override
	public Object getAllCorps() {
		// TODO Auto-generated method stub
		return loginDao.getAllCorps();
	}

	@Override
	public User getUser(String ccusername, String ccuserpwd) {
		// TODO Auto-generated method stub
		return loginDao.getUser(ccusername, ccuserpwd);
	}
   
	
}
